package com.erp.erp_servers.InspectCargo.imp;

import com.erp.erp_dao.InspectCargo.IInspectCargoFileDAO;
import com.erp.erp_entitys.InspectCargo.InspectCargoFileEntity;
import com.erp.erp_servers.InspectCargo.IInspectCargoFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImpInspectCargoFileService implements IInspectCargoFileService {
    @Autowired
    private IInspectCargoFileDAO inspectCargoFileDAO;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return inspectCargoFileDAO.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(InspectCargoFileEntity record) {
        return inspectCargoFileDAO.insert(record);
    }

    @Override
    public int insertSelective(InspectCargoFileEntity record) {
        return inspectCargoFileDAO.insertSelective(record);
    }

    @Override
    public InspectCargoFileEntity selectByPrimaryKey(Integer id) {
        return inspectCargoFileDAO.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(InspectCargoFileEntity record) {
        return inspectCargoFileDAO.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(InspectCargoFileEntity record) {
        return inspectCargoFileDAO.updateByPrimaryKey(record);
    }

    @Override
    public List<InspectCargoFileEntity> selectFileByIcId(Integer icId) {
        return inspectCargoFileDAO.selectFileByIcId(icId);
    }

}
